home *** CD-ROM | disk | FTP | other *** search
-
- XIL Demo's: User Guide
- ----------------------
-
- Contents:
-
- 1). PixelBlaster Quick Tips
- To Get Started
- Features and Functions
- Saving your work
-
-
- 2). XIL Scale Demo Quick Tips
- To Get Started
- Global application tips
-
- ======================================================================
-
- 1). Pixel Blaster -- how to use:
-
- This general purpose image manipulation application uses a
- simple drag and drop interface in combination with the Solaris
- file manager. By applying any one of several geometric operations
- to the working image, you can experiment with the dynamics of
- real time, interactive 2d imaging performance.
-
-
- To get started:
-
- (Note: Assuming that you have Volume Management running, you
- will see two file manager windows pop onto the screen. One is
- for the CDROM and the other is for the image library. You can
- close the CDROM file manager window as you won't be needing it
- for this demo)
-
- From the image library file manager window, click on the icon
- of an image you're interested in and drag it to the drop target
- zone in the PixelBlaster window (small grey square in the window
- labeled "SX/XIL" demo). The image should automatically load from
- the CDROM and display in the window. You can resize the image
- window to suit your needs.
-
- Once the image has been successfully loaded, click on the "Controls"
- button. This brings up a new window which gives you a palette of
- geometric options you can apply to the source image (the first
- operation by default is "Rotate"). By pressing and holding the right
- mouse button, you should get a sub-menu with five more functions.
-
-
- Features and Functions
-
-
- All six operations are described below:
-
-
- Rotate: (uses XilRotate())
-
- With the mouse pointer in the main image canvas,
- click and drag with any mouse button. The image should
- immediately begin rotating in conjunction with the mouse
- movement.
-
-
-
- Flip: (uses XilFlip())
-
- A generalization of the rotate function. The "flip"
- function flips the image in the main canvas by 90 degrees.
- With the mouse pointer in the main image canvas, click and
- drag with any mouse button. The image should flip in
- very rapid succession.
-
-
-
- Zoom: (uses XilScale())
-
- With the mouse pointer in the main image canvas, press and
- hold any mouse button. As you move the mouse pointer
- in the Cartesian X or Y direction, the image should scale
- (nearest neighbor algorithm) in X,Y or some combination thereof.
-
-
-
- Pan: (uses XilTranslate())
-
- With the mouse pointer in the main image canvas, press and
- hold any mouse button. By moving about the mouse pad in any
- given combination of X and Y, you can navigate around the
- image.
-
-
-
- Affine: (uses XilAffine())
-
-
- This operation warps the image depending on how you move the
- mouse pointer around the main image canvas. With the mouse
- pointer in the main image canvas, press and hold any mouse
- button. By moving the pointer around, you can quickly get a
- feel for the speed and quality of applying this complex operation
- on all pixels in the image.
-
-
-
- Stretch:
-
- With the mouse pointer in the main image canvas, press and
- hold any mouse button. By moving the mouse pointer in either
- the X or Y direction, you can stretch or squash the source
- image interactively.
-
-
-
- Update:
-
-
- Applies the current coefficients of the given operation to the
- image permanently, allowing you to apply cumulative changes to
- the image you are working with.
-
-
-
- Saving your work:
-
- To save your image, use the "snapshot" deskset tool to grab a
- copy of the entire window or just a region of the image you are
- interested in. The "snapshot" application is part of the default
- toolset supplied with both OpenWindows and CDE.
-
-
- ======================================================================
-
-
- 2). XIL Scale Demo
-
-
- This demo focuses specifically on the various controls and features
- of the XIL Scale operation. Since fast, interactive image scaling is
- gaining significant performance in several areas of high performance
- imaging applications, it is worth exploring the features of this one
- function in greater detail.
-
-
- To Get Started:
-
- (Note: Assuming that you have Volume Management running, you
- will see two file manager windows pop onto the screen. One is
- for the CDROM and the other is for the image library. You can
- close the CDROM file manager window as you won't be needing it
- for this demo)
-
- From the image library file manager window, click on the icon
- of an image you're interested in and drag it to the drop target
- zone in the "Xil Scale Demo" window (small grey square in the right hand
- corner of the window labeled "Xil Scale Demo"). The image should
- automatically load from the CDROM and display in the window.
- You can resize the image window to suit your needs.
-
-
-
-
- Global application tips:
-
-
- Statistics:
-
- The current image statistics (width, height, size) are always
- displayed in the lower left hand corner of the main image canvas.
- In the upper left hand corner are the speed of image copy to the
- main canvas in MegaPixels per second, and the number of frames per
- second copied to the screen.
-
-
- Mouse button behavior (in "Manual" mode)
-
- When "Manual" mode is selected, the left and right mouse buttons act
- as a panning function when pressed and held while moving the mouse
- pointer in the main image canvas. The middle mouse button applies the
- Interpolation method as selected in the "Interpolation" indicator menu.
-
-
-
- Features and Functions
-
-
- The following functions are available:
-
-
- About:
-
- Tells you (briefly) about the demo
-
-
-
- Reset View:
-
- Takes you back to the default orientation of the original image.
-
-
-
- Refresh:
-
- Clears any screen tears or stray pixels in the image window.
-
-
-
- Controls (Expert Controls)
-
-
- X and Y (%) Scaling:
-
- Allows you to set the total % of change in both X&Y directions using the
- slider for more precise control.
-
-
-
- Y Only (%) Scaling:
-
- Same as above, except that you can only scale in the "Y" direction.
-
-
-
- DataType:
-
- Only use Short or 4 Bands with your own images of these types. All
- images provided with the XilScale demo are 3 banded byte images.
- (e.g. 3 bands: Red, Green, Blue where each band is 8 bits deep).
-
-
-
- Redisplay Once:
-
- Use this to simply re-draw the image once.
-
-
-
- Redisplay "n" times:
-
- Using the value in the "Times To Redisplay", this function copies
- the image on the screen to the display the number of times specified.
-
-
- Source Origin:
-
- Use these sliders to explicitly set the source origin from which to
- scale.
-
-
- Destination Origin:
-
- Use these sliders to explicitly specify the destination origin to scale
- to.
-
-
- Destination Size:
-
- Use these sliders to set the destination size (in pixels) of the final
- image to scale to.
-
-
-
-
- Interpolation Method:
-
- Nearest: Lowest quality, ultrafast performance. This method merely uses
- neighboring pixels to replicate the image data when scaling. Results
- in extremely blocky or pixelated images when zoomed at large values.
-
- Bilinear: Higher quality, very fast performance. This method applies
- a special smoothing function in addition to scaling the target image
- data to provide much higher quality. The bilinear interpolation method
- is much more computationally complex than nearest neighbor
- interpolation.
-
- Bicubic: Highest quality, fast performance. This method applies
- a high quality smoothing function in addition to scaling the target
-
- image data to provide the highest quality. The bicubic interpolation
- method is more computationally complex than both the nearest neighbor
- and bilinear interpolation methods.
-
-
- Mode:
-
- Manual: Allows you to apply the given interpolation method interactively
- by using the left or right mouse button for panning within the main
- image canvas and the middle mouse button for applying the scaling
- function.
-
- Automatic: Using a simple randomizing algorithm, the application moves
- about the main image canvas iteratively scaling the image using the
- scaling algorithm selected in "Interpolation".
-
-